package IOperation;

import Book.Book;
import Book.BookList;

/**
 * Created with IntelliJ IDEA.
 * User: wenxiwen
 * Date: 2022/4/15
 * Time: 10:47
 * Description: No Description
 */
public class Display implements IOperation{
    public void work(BookList bookList) {
        System.out.println("显示图书");

        int index = bookList.getCount();
        System.out.println("显示的信息如下:");
        for (int i = 0; i < index; i++) {
            Book book = bookList.getBook(i);
            System.out.println(book);
        }
    }
}